package com.example.system.domain.question.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
public class QuestionAddDTO {
    @Schema(description = "题目标题")
    @NotBlank(message = "题目标题不能为空")
    private String title;
    @Schema(description = "题目难度")
    @NotBlank(message = "题目难度不能为空")
    private Integer difficulty;

    private Long timeLimit;

    private Long spaceLimit;
    @Schema(description = "题目内容")
    @NotBlank(message = "题目内容不能为空")
    private String content;
    @Schema(description = "题目用例")
    @NotBlank(message = "题目用例不能为空")
    private String questionCase;
    @Schema(description = "默认代码")
    @NotBlank(message = "默认代码不能为空")
    private String defaultCode;
    @Schema(description = "main函数")
    @NotBlank(message = "main函数不能为空")
    private String mainFunc;
}
